﻿using Common.Enum;

namespace Entity.ERP.Entity
{
    /// <summary>
    /// 销售发货单模型
    /// </summary>
    public class SaleDeliveryModel
    {
        /// <summary>
        /// 销售发货单 ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 销售发货编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 流转卡号
        /// </summary>
        public string CardNo { get; set; }

        /// <summary>
        /// 物流公司 ID
        /// </summary>
        public string LogisticsId { get; set; }

        /// <summary>
        /// 客户 ID
        /// </summary>
        public string CustomerId { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string Contact { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 收货地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 计划发货时间
        /// </summary>
        public DateTime PlanDeliveryTime { get; set; }

        /// <summary>
        /// 实际发货时间
        /// </summary>
        public DateTime? ActualDeliveryTime { get; set; }

        /// <summary>
        /// 到货时间
        /// </summary>
        public DateTime? ArrivalTime { get; set; }

        /// <summary>
        /// 单据状态
        /// </summary>
        public StateEnum.SaleType Status { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public StateEnum.ExamStatus ExamStatus { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
